﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="comment_edit.aspx.cs" Inherits="BackManage_comment" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>评论</title>
    <style type="text/css">
        .style1
        {
            font-size: x-large;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
           <div style=" margin:0 auto; width:509px">
                <div style=" margin:0 auto; width:509px; height:30px; text-align:center; background-color: #33CCFF;" 
                    class="style1" >
                所有评论
                </div>
                <asp:GridView ID="commentList" runat="server" AutoGenerateColumns="False" 
                      AllowPaging="false" Width="509px" onrowcommand="orderList_RowCommand" >
                  <Columns>
                    <asp:BoundField DataField="Comm_Idint" HeaderText="评论编号" Visible="false"></asp:BoundField>
                    <asp:BoundField DataField="Book_Idint" HeaderText="图书编号" Visible="false"></asp:BoundField>
                    <asp:BoundField DataField="User_Idint" HeaderText="用户编号" Visible="false"></asp:BoundField>
                    <asp:BoundField DataField="Book_Namestr" HeaderText="图书名"></asp:BoundField>
                    <asp:BoundField DataField="User_Namestr" HeaderText="用户名"></asp:BoundField>
                    <asp:BoundField DataField="Comm_PublishDatedate" HeaderText="评论时间"></asp:BoundField>
                  
                   <asp:TemplateField HeaderText="详情">
                      <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="selectComm"                        
                        CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Comm_Idint")%>'   Text="详情" ></asp:LinkButton>  
                      </ItemTemplate>
                    </asp:TemplateField>   
                    
                    <asp:TemplateField HeaderText="删除">
                      <ItemTemplate>
                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="deleteComm"                        
                        CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Comm_Idint")%>'   Text="删除" OnClientClick='<%#  "if (!confirm(\"你确定要删除吗?\")) return false;"%>'></asp:LinkButton>  
                      </ItemTemplate>
                    </asp:TemplateField>       
                  </Columns>
                </asp:GridView>
                <div style="text-align:center">
                    <asp:LinkButton ID="pageFirst" runat="server" Text="首页" CommandArgument="First"></asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="pagePrev" runat="server" Text="上一页" CommandArgument="Prev"></asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="pageNext" runat="server" Text="下一页" CommandArgument="Next"></asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="pageLast" runat="server" Text="最后一页" CommandArgument="Last"></asp:LinkButton>
                </div>
                <asp:Panel id="panel1" runat="server" Visible="false" >
                  <div style="margin-top:20px">
                  <hr />
                  详细内容</div>
                  <asp:TextBox ID="Detailtext" TextMode="MultiLine" runat="server" Height="87px" Width="371px"></asp:TextBox>
                </asp:Panel>
           </div>
        </div>
    </form>
</body>
</html>
